function getParams(key)
{
       let params = window.location.href.split('?')[1]
       params = decodeURI(params)
       let paramsArr = params.split("&");
       for (let i=0;i<paramsArr.length;i++) 
       {
       		let tempArr = paramsArr[i].split("=");
       		if(tempArr[0] == key) return tempArr[1]
       }
       return false;
}